package com.xmkj.bearuser.membercenter.adapter;

import android.content.Context;

import com.common.retrofit.bean.RewardDetailsBean;
import com.common.widget.recyclerview.refresh.adapter.CommonAdapter;
import com.common.widget.recyclerview.refresh.adapter.ViewHolder;
import com.xmkj.bearuser.R;

import java.util.List;

/**
 * Create by leo
 * 创建日期：2018/7/17
 * 描述：
 */

public class ShareRewardAdapter extends CommonAdapter<RewardDetailsBean.ScoreListEntity> {
    public ShareRewardAdapter(Context context, List<RewardDetailsBean.ScoreListEntity> data) {
        super(context, data);
    }

    @Override
    protected void convert(ViewHolder holder, RewardDetailsBean.ScoreListEntity item, int position) {
        holder.setText(R.id.tv_date,item.date);
        holder.setText(R.id.tv_jifen,item.content);
        holder.setText(R.id.tv_name,item.nickname);
    }

    @Override
    protected int getItemViewLayoutId(int position, RewardDetailsBean.ScoreListEntity item) {
        return R.layout.item_share_reward;
    }
}
